import java.util.ArrayList;
import java.util.List;

public class Test1 {
    public static void main(String[] args) {
        Student student1=new Student("张三",28,"男");
        Student student2=new Student("李四",16,"女");
        Student student3=new Student("王五",30,"男");
        ArrayList<Student>list=new ArrayList<>();
        list.add(student1);
        list.add(student2);
        list.add(student3);
        System.out.println(list);
    }
}
